<!DOCTYPE HTML>
<html>
<head>
    {include file="common_header"}
    <title>修改栏目</title>
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal"  method="post" enctype="multipart/form-data" action="{:url('edit')}">
        <input type="hidden" name="id" value="{$data['id']}">
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red">*</span>栏目名称：</label>
            <div class="formControls col-xs-6">
                <input type="text" class="input-text" value="{$data['name']}" placeholder="请输入栏目名称" id="name"  name="name" datatype="*" nullmsg="请输入栏目名称">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red">*</span>栏目类型：</label>
            <div class="formControls col-xs-6"> <span class="select-box">
				<select name="column_id" class="select" datatype="*" nullmsg="请选择菜单" onchange="selectmenu($(this))">
					<option value="" selected disabled>请选择栏目</option>

					<option value="0" {if condition="$data['column_id'] eq '顶级栏目'"}selected{/if}>顶级栏目</option>
                    {volist name="list" id="v"}
                        <option value="{$v['id']}" {if condition="$data['column_id'] eq  $v['names']"}selected{/if}>{$v['name']}</option>
                    {/volist}
				</select>
				</span> </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1">封面图：</label>
            <div class="formControls col-xs-6">
                <input type="file" class="input-text" value="" placeholder="" id="articletitle2" name="coverFile">
            </div>
            {if condition="$data['cover']"}
            已上传，<a href="javascript:void(0);"  onclick="previewPictures('__UPLOADS__'+'{$data.cover}')" style="color: red;text-decoration: none;">预览</a>
            {/if}
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3 col-xs-offset-1"><span class="c-red"></span>栏目排序：</label>
            <div class="formControls col-xs-6 col-sm-9">
                <input type="text" class="input-text"  value="{$data['sort']}" placeholder="请输入栏目排序"  name="sort" >
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>
<!--_footer 作为公共模版分离出去-->
{include file="common_footer"}
<!--/_footer 作为公共模版分离出去-->
</body>
</html>